import { createRouter, createWebHistory } from 'vue-router'

import index from '@/views/index.vue'
import bussnessList from '@/views/bussnessList.vue'
import bussnessInfor from '@/views/bussnessInfor.vue'
import bussInforFooter from '@/components/bussInforFooter.vue'
import ConfrimOrder from '@/views/ConfrimOrder.vue'
import PayPage from '@/views/PayPage.vue'
import Footer from '@/components/Footer.vue'
import Register from '@/views/Register.vue'
import Login from '@/views/Login.vue'
import Orders from '@/views/Orders.vue'

import EditUserAddress from '@/views/EditUserAddress.vue'
import UserAddress from '@/views/UserAddress.vue'
import addUserAddress from '@/views/addUserAddress.vue'
import OrderList from '@/views/OrderList.vue'
import GoodsList from '@/views/GoodsList.vue'
import GoodsInfo from '@/views/GoodsInfo.vue'
import PayErweima from '@/views/PayErweima.vue'
import PaySuccess from '@/views/paySuccess.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: index
  },
  {
    path:'/businessList',
    name:'bussnessList',
    component:bussnessList
  },
  {
    path:'/bussnessInfor',
    name:'bussnessInfor',
    component:bussnessInfor
  },
  {
    path:'/bussInforFooter',
    name:'bussInforFooter',
    component:bussInforFooter
  },
  {
    path:'/ConfrimOrder',
    name:'ConfrimOrder',
    component:ConfrimOrder
  },
  {
    path:'/PayPage',
    name:'PayPage',
    component:PayPage
  },
  {
    path:'/Footer',
    name:'Footer',
    component:Footer

  },
  {
    path:'/register',
    name:'Register',
    component:Register
  },
  {
  path:'/login',
  name:'Login',
  component:Login
  },{
    path:'/Orders',
    name:'Orders',
    component:Orders
  },
  {
    path:'/OrderList',
    name:'OrderList',
    component:OrderList
  },{
    path:'/EditUserAddress',
    name:'EditUserAddress',
    component:EditUserAddress
  },{
    path:'/userAddress',
    name:'userAddress',
    component:UserAddress
  },{
    path:'/addUserAddress',
    name:'addUserAddress',
    component: addUserAddress
  },
  {
    path:'/goodsList',
    name:'goodsList',
    component:GoodsList
  },
  {
    path:'/goodsInfo',
    name:'goodsInfo',
    component: GoodsInfo
  },{
    path:'/payQrcode',
    name:'payQrcode',
    component:PayErweima
  },
  {
    path:'/paySuccess',
    name:'paySuccess',
    component:PaySuccess
  }

  
    
  
  
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
